aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-05-27 00:47:45 -0700
committerAdam Soltys <[email protected]>2023-05-27 00:47:45 -0700
commit756a9eb215ae68a306ce1c263f010578e24dfd6d (patch)
tree24b4abad65777e54608eeffee8ec6145337f8034 /src/routes/(app)/[username]
parentb3d2921b099c6748990bb38fec4bea52e8786535 (diff)
downloadcoinos-ui-756a9eb215ae68a306ce1c263f010578e24dfd6d.tar.gz
coinos-ui-756a9eb215ae68a306ce1c263f010578e24dfd6d.zip
pot page improvementsnew-qr-scanner
Diffstat (limited to 'src/routes/(app)/[username]')
-rw-r--r--src/routes/(app)/[username]/(profile)/+page.svelte20
-rw-r--r--src/routes/(app)/[username]/payments/[...page]/+page.svelte10
2 files changed, 9 insertions, 21 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte
index 7b81b797..2de58873 100644
--- a/src/routes/(app)/[username]/(profile)/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/+page.svelte
@@ -88,29 +88,25 @@
{#if !user.balance}
<div class="mb-8">
<p class="text-secondary text-lg">
- {$t("user.welcome")}
+ {$t('user.welcome')}
</p>
</div>
{/if}
- <div class="flex gap-4 justify-center w-full">
- <a href={`/${user.username}/receive`}>
- <button
- class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60"
- >
+ <div class="flex flex-wrap gap-4 justify-center w-full">
+ <a href={`/${user.username}/receive`} class="w-full md:w-60">
+ <button class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-full md:w-60">
<div class="mx-auto flex">
<Icon icon="numpad" style="my-auto h-6 mr-2" />
- <div class="my-auto mt-1">{$t("user.requestPayment")}</div>
+ <div class="my-auto mt-1">{$t('user.requestPayment')}</div>
</div>
</button>
</a>
- <a href={`/scan`}>
- <button
- class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60"
- >
+ <a href={`/scan`} class="w-full md:w-60">
+ <button class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-full md:w-60">
<div class="mx-auto flex">
<Icon icon="scan" style="my-auto h-6 mr-2" />
- <div class="my-auto mt-1">{$t("user.send.scan")}</div>
+ <div class="my-auto mt-1">{$t('user.send.scan')}</div>
</div>
</button>
</a>
diff --git a/src/routes/(app)/[username]/payments/[...page]/+page.svelte b/src/routes/(app)/[username]/payments/[...page]/+page.svelte
index adfaf680..611da44a 100644
--- a/src/routes/(app)/[username]/payments/[...page]/+page.svelte
+++ b/src/routes/(app)/[username]/payments/[...page]/+page.svelte
@@ -4,21 +4,13 @@
import { format } from 'date-fns';
import { newPayment, payments } from '$lib/store';
import { t } from '$lib/translations';
- import { get, f, s, sat, sats } from '$lib/utils';
+ import { get, f, s, sat, sats, types } from '$lib/utils';
import { page } from '$app/stores';
import { differenceInDays, getUnixTime, sub } from 'date-fns';
import { goto, invalidate } from '$app/navigation';
export let data;
- const types = {
- internal: 'internal',
- bitcoin: 'bitcoin',
- lightning: 'lightning',
- pot: 'pot',
- classic: 'classic'
- };
-
let { start, end, user, rates } = data;
let change = ({ target: { value } }) => goto(value);